<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        window.onload = function () {
            var inum01 = 123;
            console.log(inum01);

            var oBox = document.getElementById("box");

            console.log(oBox);
            console.log("box ==" + oBox);
            
            // 改变文档标题
            document.title = inum01;

        }
    </script>
</head>

<body>

    <div id="box">哈哈哈哈</div>

</body>

</html>